package com.ssy.lingxi.logistics.api.fallback;

import com.ssy.lingxi.common.response.ResponseCode;
import com.ssy.lingxi.common.response.Wrapper;
import com.ssy.lingxi.logistics.api.dto.request.LogisticsMemberIdAndRoleIdReq;
import com.ssy.lingxi.logistics.api.dto.request.LogisticsSelectCompanyListFeignReq;
import com.ssy.lingxi.logistics.api.dto.response.CommonSelectResponse;
import com.ssy.lingxi.logistics.api.dto.response.FreightTemplateFeignRes;
import com.ssy.lingxi.logistics.api.dto.response.ShipperAddressSelectFeignRes;
import com.ssy.lingxi.logistics.api.feign.LogisticsSelectControllerFeign;
import org.springframework.stereotype.Component;

import java.util.List;


@Component
public class LogisticsSelectControllerFeignFallback implements LogisticsSelectControllerFeign {
    @Override
    public Wrapper<List<FreightTemplateFeignRes>> listFreightTemplate(LogisticsMemberIdAndRoleIdReq req) {
        return Wrapper.fail(ResponseCode.SERVICE_LOGISTICS_ERROR);
    }

    @Override
    public Wrapper<List<ShipperAddressSelectFeignRes>> listShipperAddress(LogisticsMemberIdAndRoleIdReq req) {
        return Wrapper.fail(ResponseCode.SERVICE_LOGISTICS_ERROR);
    }

    @Override
    public Wrapper<List<CommonSelectResponse>> listCompany(LogisticsSelectCompanyListFeignReq req) {
        return Wrapper.fail(ResponseCode.SERVICE_LOGISTICS_ERROR);
    }
}
